package com.hkts.management.unattended.poundroom.service.serviceimpl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hkts.management.unattended.poundroom.entity.YbMutualInventoryTail;
import com.hkts.management.unattended.poundroom.mapper.YbMutualInventoryTailMapper;
import com.hkts.management.unattended.poundroom.service.IYbMutualInventoryTailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.apache.commons.lang.StringUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zy
 * @since 2021-11-03
 */
@Service
@Transactional
public class YbMutualInventoryTailServiceImpl extends ServiceImpl<YbMutualInventoryTailMapper, YbMutualInventoryTail> implements IYbMutualInventoryTailService {


    @Autowired
    private YbMutualInventoryTailMapper ybMutualInventoryTailMapper;

    @Override
    public IPage<YbMutualInventoryTail> selectPage(Page<YbMutualInventoryTail> page, YbMutualInventoryTail ybMutualInventoryTail) {
        QueryWrapper<YbMutualInventoryTail> query = Wrappers.query();
        return ybMutualInventoryTailMapper.selectPage(page, query);
    }


    @Override
    public List<YbMutualInventoryTail> selectList(YbMutualInventoryTail ybMutualInventoryTail) {
        QueryWrapper<YbMutualInventoryTail> query = Wrappers.query();
        return ybMutualInventoryTailMapper.selectList(query);
    }

    @Override
    public void insertYbMutualInventoryTailByBatch(List<YbMutualInventoryTail> ybMutualInventoryTails) {
        ybMutualInventoryTailMapper.insertYbMutualInventoryTailByBatch(ybMutualInventoryTails);
    }
}
